package org.skyhi.gui;

import javax.swing.JFrame;
import org.skyhi.core.*;

public class MainGUI extends JFrame {

   /**  **/
   private static final long serialVersionUID = 1L;

   /**
    * @param args
    */
   public static void main(String[] args) {
      XMLProcess xmlprocess = new XMLProcess("data/appointments.xml");
      AppointmentBook appBook = xmlprocess.createAppointmentBook();
      
      ToDoListModel model = new ToDoListModel();
      for(Appointment app : appBook) {
         model.addNewRow(app.toStringArray());
      }
      MainFrame mainFrame = new MainFrame(model,xmlprocess);
      mainFrame.setVisible(true);
      
   }
   
   
}
